package joonany.basic.j03;

public class J03_Ambiguous {

	public static void main(String[] args) {
		// 애매모호한 IF문
		int x = 1, y = 2, z = 3;
		
		if (x > 2){
			if(y > 2)
				z = x + y;
			System.out.println("z is " + z);
		}else
			System.out.println("x is " + x);

		if (x > 2)
			if(y > 2)
				z = x + y;
		 else
			System.out.println("x is " + x);
		System.out.println("z is " + z);

	}

}
